```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Java循环语句全解析 | 技术小馆</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            line-height: 1.8;
            color: #333;
            background-color: #f9f9f9;
        }
        .hero {
            background: linear-gradient(135deg, #6e8efb, #a777e3);
        }
        .code-block {
            background-color: #282a36;
            color: #f8f8f2;
            border-radius: 8px;
            overflow: hidden;
        }
        .code-header {
            background-color: #343746;
            padding: 8px 12px;
            color: #f8f8f2;
            font-size: 0.9rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .card {
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        .highlight {
            position: relative;
        }
        .highlight:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 30%;
            background-color: rgba(110, 142, 251, 0.2);
            z-index: -1;
            transition: all 0.3s ease;
        }
        .highlight:hover:after {
            height: 100%;
        }
        .footer {
            background-color: #1a202c;
        }
        .nav-link {
            position: relative;
        }
        .nav-link:after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #6e8efb;
            transition: width 0.3s ease;
        }
        .nav-link:hover:after {
            width: 100%;
        }
        .mermaid {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- 导航栏 -->
    <nav class="bg-white shadow-sm py-4">
        <div class="container mx-auto px-4 md:px-6 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <i class="fas fa-code text-blue-500 text-2xl"></i>
                <span class="font-bold text-xl text-gray-800">技术小馆</span>
            </div>
            <div class="hidden md:flex space-x-6">
                <a href="#" class="nav-link text-gray-600 hover:text-blue-500">首页</a>
                <a href="#" class="nav-link text-gray-600 hover:text-blue-500">Java教程</a>
                <a href="#" class="nav-link text-gray-600 hover:text-blue-500">Python教程</a>
                <a href="#" class="nav-link text-gray-600 hover:text-blue-500">前端开发</a>
                <a href="#" class="nav-link text-gray-600 hover:text-blue-500">关于我们</a>
            </div>
            <button class="md:hidden text-gray-600">
                <i class="fas fa-bars text-xl"></i>
            </button>
        </div>
    </nav>

    <!-- Hero 区域 -->
    <div class="hero text-white py-20">
        <div class="container mx-auto px-4 md:px-6 text-center">
            <h1 class="text-4xl md:text-5xl font-bold mb-4">Java循环语句全解析</h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90">掌握编程基础，提升代码效率</p>
            <div class="flex justify-center space-x-4">
                <button class="bg-white text-blue-600 px-6 py-2 rounded-full font-medium hover:bg-gray-100 transition duration-300">
                    <i class="fas fa-book mr-2"></i>立即学习
                </button>
                <button class="border-2 border-white text-white px-6 py-2 rounded-full font-medium hover:bg-white hover:text-blue-600 transition duration-300">
                    <i class="fas fa-code mr-2"></i>实战练习
                </button>
            </div>
        </div>
    </div>

    <!-- 主要内容 -->
    <div class="container mx-auto px-4 md:px-6 py-12">
        <div class="flex flex-col lg:flex-row gap-8">
            <!-- 主内容区 -->
            <div class="lg:w-3/4">
                <!-- 目标区域 -->
                <section class="mb-12">
                    <div class="flex items-center mb-6">
                        <div class="w-1 h-10 bg-blue-500 mr-4"></div>
                        <h2 class="text-3xl font-bold text-gray-800">学习目标</h2>
                    </div>
                    <div class="bg-white rounded-lg shadow-md p-6 card">
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <span class="text-gray-700">学习Java中的循环语句</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <span class="text-gray-700">掌握for循环和while循环的用法及区别</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <span class="text-gray-700">能够灵活运用循环语句解决问题</span>
                            </li>
                        </ul>
                    </div>
                </section>

                <!-- 循环概念 -->
                <section class="mb-12">
                    <div class="flex items-center mb-6">
                        <div class="w-1 h-10 bg-purple-500 mr-4"></div>
                        <h2 class="text-3xl font-bold text-gray-800">循环的概念</h2>
                    </div>
                    <div class="bg-white rounded-lg shadow-md p-6 card">
                        <p class="text-gray-700 mb-4">在Java编程中，循环语句是一种重要的控制结构，用于重复执行特定的代码块。掌握循环语句可以提高程序的效率和可维护性。</p>
                        <div class="flex justify-center my-6">
                            <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1708393891182-4a99745a-d526-4ce9-9be2-d4c3a17a66a6.png" alt="循环概念图" class="rounded-lg shadow-md max-w-full h-auto">
                        </div>
                    </div>
                </section>

                <!-- For循环 -->
                <section class="mb-12">
                    <div class="flex items-center mb-6">
                        <div class="w-1 h-10 bg-red-500 mr-4"></div>
                        <h2 class="text-3xl font-bold text-gray-800">For循环</h2>
                    </div>
                    <div class="bg-white rounded-lg shadow-md p-6 card">
                        <p class="text-gray-700 mb-4">For循环是一种常用的循环结构，通常用于<span class="font-bold text-red-500">已知循环次数</span>的情况下。</p>
                        <div class="flex justify-center my-6">
                            <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1708394145365-ff1fa218-8f8d-4f0e-9385-42fb9be8c8a4.png" alt="For循环图" class="rounded-lg shadow-md max-w-full h-auto">
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">特点：</h3>
                            <ul class="space-y-2 text-gray-700">
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-red-400"></i>
                                    <span>For循环是最常用的循环结构之一，适用于已知循环次数的情况。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-red-400"></i>
                                    <span>它由三个部分组成：初始化表达式、循环条件、更新表达式。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-red-400"></i>
                                    <span>初始化表达式在循环开始前执行一次，循环条件在每次循环开始前检查，如果条件为真，则执行循环体；更新表达式在每次循环结束后执行。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-red-400"></i>
                                    <span>For循环可以遍历数组或集合等数据结构。</span>
                                </li>
                            </ul>
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">语法格式：</h3>
                            <div class="code-block">
                                <div class="code-header">
                                    <span>Java</span>
                                    <button class="text-gray-400 hover:text-white">
                                        <i class="far fa-copy"></i>
                                    </button>
                                </div>
                                <pre class="p-4 overflow-x-auto"><code class="language-java">for (初始化语句; 循环条件; 更新语句) {
    // 循环体
}</code></pre>
                            </div>
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">示例：</h3>
                            <div class="code-block">
                                <div class="code-header">
                                    <span>Java</span>
                                    <button class="text-gray-400 hover:text-white">
                                        <i class="far fa-copy"></i>
                                    </button>
                                </div>
                                <pre class="p-4 overflow-x-auto"><code class="language-java">for (int i = 0; i < 5; i++) {
    System.out.println("当前数字：" + i);
}

//需求：输出1-100所有的奇数
for(int i = 1; i < 101; i++){
    if(i % 2 != 0){
        System.out.println(i);
    }            
}        
for(int i = 1; i < 101; i=i+2){
    System.out.println(i);
}        
//需求：输出a-z    
for(char i = 'a' ; i <= 'z' ; i++){
    System.out.println(i);
}</code></pre>
                            </div>
                        </div>
                        
                        <div class="bg-blue-50 p-4 rounded-lg border border-blue-100">
                            <h4 class="text-lg font-bold text-blue-800 mb-3 flex items-center">
                                <i class="fas fa-pen-square mr-2"></i>课堂练习
                            </h4>
                            <p class="text-blue-700">实现打印100遍的"我爱你"</p>
                        </div>
                        
                        <div class="bg-yellow-50 p-4 rounded-lg border border-yellow-100 mt-4">
                            <h4 class="text-lg font-bold text-yellow-800 mb-3 flex items-center">
                                <i class="fas fa-tasks mr-2"></i>强化练习
                            </h4>
                            <ol class="list-decimal list-inside text-yellow-700 space-y-2">
                                <li>请在控制台输出数据1-10</li>
                                <li>请在控制台输出数据10-1</li>
                                <li>求出1-10之间数据之和</li>
                                <li>求出1-100之间能够被3整除的所有数的和</li>
                            </ol>
                        </div>
                    </div>
                </section>

                <!-- While循环 -->
                <section class="mb-12">
                    <div class="flex items-center mb-6">
                        <div class="w-1 h-10 bg-green-500 mr-4"></div>
                        <h2 class="text-3xl font-bold text-gray-800">While循环</h2>
                    </div>
                    <div class="bg-white rounded-lg shadow-md p-6 card">
                        <p class="text-gray-700 mb-4">While循环是一种适用于未知循环次数的情况下的循环结构，循环条件为true时执行循环体，直到条件为false时结束循环。</p>
                        <div class="flex justify-center my-6">
                            <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1708394402123-2df6efe0-d566-4466-92ee-b98aae605ab2.png" alt="While循环图" class="rounded-lg shadow-md max-w-full h-auto">
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">特点：</h3>
                            <ul class="space-y-2 text-gray-700">
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-green-400"></i>
                                    <span>While循环在循环开始前仅检查循环条件，如果条件为真，则执行循环体。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-green-400"></i>
                                    <span>While循环适用于未知循环次数的情况，只要条件为真，就会重复执行循环体。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-green-400"></i>
                                    <span>在进入While循环之前，必须确保循环条件最终会变为假，否则可能导致无限循环。</span>
                                </li>
                            </ul>
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">语法格式：</h3>
                            <div class="code-block">
                                <div class="code-header">
                                    <span>Java</span>
                                    <button class="text-gray-400 hover:text-white">
                                        <i class="far fa-copy"></i>
                                    </button>
                                </div>
                                <pre class="p-4 overflow-x-auto"><code class="language-java">while (循环条件) {
    // 循环体
}</code></pre>
                            </div>
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">示例：</h3>
                            <div class="code-block">
                                <div class="code-header">
                                    <span>Java</span>
                                    <button class="text-gray-400 hover:text-white">
                                        <i class="far fa-copy"></i>
                                    </button>
                                </div>
                                <pre class="p-4 overflow-x-auto"><code class="language-java">int count = 0;
while (count < 5) {
    System.out.println("当前数字：" + count);
    count++;
}

//2、求1~100的和
int i = 1;
int sum = 0;
while(i <= 100){            
    sum = sum + i;
    i++;
}
System.out.println(sum);</code></pre>
                            </div>
                        </div>
                    </div>
                </section>

                <!-- Do-While循环 -->
                <section class="mb-12">
                    <div class="flex items-center mb-6">
                        <div class="w-1 h-10 bg-orange-500 mr-4"></div>
                        <h2 class="text-3xl font-bold text-gray-800">Do-While循环</h2>
                    </div>
                    <div class="bg-white rounded-lg shadow-md p-6 card">
                        <p class="text-gray-700 mb-4">Do-While循环是一种特殊的循环结构，它先执行循环体，然后再检查循环条件，至少会执行一次循环体。</p>
                        <div class="flex justify-center my-6">
                            <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1708394640818-ef5c124a-df2b-4245-bcdf-b0585219889a.png" alt="Do-While循环图" class="rounded-lg shadow-md max-w-full h-auto">
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">特点：</h3>
                            <ul class="space-y-2 text-gray-700">
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-orange-400"></i>
                                    <span>Do-While循环是一种特殊的循环结构，它先执行循环体，然后再检查循环条件。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-orange-400"></i>
                                    <span>Do-While循环保证循环体至少会被执行一次，即使循环条件一开始就不满足。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-orange-400"></i>
                                    <span>适用于需要至少执行一次循环体的情况。</span>
                                </li>
                            </ul>
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">语法格式：</h3>
                            <div class="code-block">
                                <div class="code-header">
                                    <span>Java</span>
                                    <button class="text-gray-400 hover:text-white">
                                        <i class="far fa-copy"></i>
                                    </button>
                                </div>
                                <pre class="p-4 overflow-x-auto"><code class="language-java">do {
    // 循环体
} while (循环条件);</code></pre>
                            </div>
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">示例：</h3>
                            <div class="code-block">
                                <div class="code-header">
                                    <span>Java</span>
                                    <button class="text-gray-400 hover:text-white">
                                        <i class="far fa-copy"></i>
                                    </button>
                                </div>
                                <pre class="p-4 overflow-x-auto"><code class="language-java">int num = 1;
do {
    System.out.println("当前数字：" + num);
    num++;
} while (num <= 5);</code></pre>
                            </div>
                        </div>
                    </div>
                </section>

                <!-- break和continue关键字 -->
                <section class="mb-12">
                    <div class="flex items-center mb-6">
                        <div class="w-1 h-10 bg-indigo-500 mr-4"></div>
                        <h2 class="text-3xl font-bold text-gray-800">break和continue关键字</h2>
                    </div>
                    <div class="bg-white rounded-lg shadow-md p-6 card">
                        <div class="flex justify-center my-6">
                            <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1708395688157-30af4f23-43c8-407c-a119-f6ff84ee7e0c.png" alt="break和continue图" class="rounded-lg shadow-md max-w-full h-auto">
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">Break关键字：</h3>
                            <ul class="space-y-2 text-gray-700">
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-indigo-400"></i>
                                    <span>Break关键字用于中断循环，并使程序控制流跳出当前循环体。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-indigo-400"></i>
                                    <span>当在循环中遇到Break语句时，循环会立即终止，程序控制流将跳出循环体，继续执行循环后的代码。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-indigo-400"></i>
                                    <span>Break通常与条件语句结合使用，用于提前结束循环，节省时间和资源。</span>
                                </li>
                            </ul>
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">Continue关键字：</h3>
                            <ul class="space-y-2 text-gray-700">
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-indigo-400"></i>
                                    <span>Continue关键字用于跳过当前循环中的剩余代码，并立即进入下一次循环的迭代。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-indigo-400"></i>
                                    <span>当在循环中遇到Continue语句时，当前循环体中Continue后面的代码将被忽略，直接进入下一次循环的迭代。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs mt-2 mr-3 text-indigo-400"></i>
                                    <span>Continue可以用于避免执行某些特定条件下的代码，提高程序的效率。</span>
                                </li>
                            </ul>
                        </div>
                        
                        <div class="mb-6">
                            <h3 class="text-xl font-bold text-gray-800 mb-3">示例：</h3>
                            <div class="code-block">
                                <div class="code-header">
                                    <span>Java</span>
                                    <button class="text-gray-400 hover:text-white">
                                        <i class="far fa-copy"></i>
                                    </button>
                                </div>
                                <pre class="p-4 overflow-x-auto"><code class="language-java">public class BreakContinueExample {
    public static void main(String[] args) {
        // 示例1: Break关键字在for循环中的应用
        for (int i = 1; i <= 10; i++) {
            if (i == 5) {
                break; // 当i等于5时，跳出循环
            }
            System.out.println("Value of i: " + i);
        }

        // 示例2: Continue关键字在while循环中的应用
        int j = 0;
        while (j < 5) {
            j++;
            if (j == 3) {
                continue; // 当j等于3时，跳过本次循环的剩余代码，直接进行下一次循环
            }
            System.out.println("Value of j: " + j);
        }
    }
}</code></pre>
                            </div>
                        </div>
                        
                        <div class="bg-purple-50 p-4 rounded-lg border border-purple-100">
                            <h4 class="text-lg font-bold text-purple-800 mb-3">注意事项：</h4>
                            <ul class="text-purple-700 space-y-2">
                                <li class="flex items-start">
                                    <i class="fas fa-exclamation-circle mt-1 mr-2"></i>
                                    <span>Break和Continue关键字通常与条件语句结合使用，应谨慎使用，确保不会导致逻辑混乱或陷入无限循环。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-exclamation-circle mt-1 mr-2"></i>
                                    <span>在嵌套循环中使用Break和Continue时，会影响到外层循环，需要注意控制程序逻辑。</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                </section>

                <!-- 作业 -->
                <section class="mb-12">
                    <div class="flex items-center mb-6">
                        <div class="w-1 h-10 bg-pink-500 mr-4"></div>
                        <h2 class="text-3xl font-bold text-gray-800">作业</h2>
                    </div>
                    <div class="bg-white rounded-lg shadow-md p-6 card">
                        <div class="space-y-4">
                            <div class="bg-gray-50 p-4 rounded-lg">
                                <ul class="list-disc list-inside text-gray-700 space-y-2">
                                    <li>整理课堂笔记</li>
                                    <li>练习课堂案例</li>
                                    <li>求出1-100之间偶数和</li>
                                    <li>求出1-100之间奇数和</li>
                                    <li>求出1-100之间既能被3整除又能被5整除的（且要求跳过能够被10整除的数）所有数之和。</li>
                                </ul>
                                <p class="text-sm text-gray-500 mt-2">补充说明：比如30，既能被3整除又能被5整除，但是能够被10整除，所以30不参与和的计算</p>
                            </div>
                            
                            <div class="bg-pink-50 p-4 rounded-lg">
                                <p class="font-bold text-pink-700 mb-3">模拟ATM取款机的三次密码校验</p>
                                <p class="text-pink-600 mb-3">当天达到3次输入密码错误，则提示"账号被冻结"，其他情况则提示还有多少次输入机会</p>
                                <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                                    <img src="https://cdn.nlark.com/yuque/0/2023/png/21449790/1692614757615-595e767a-f758-42d9-9e8c-da46ebfb4325.png" alt="ATM效果图1" class="rounded border border-gray-200">
                                    <img src="https://cdn.nlark.com/yuque/0/2023/png/21449790/1692614757847-c8c2a27e-1c2f-440a-9e67-353d7286549d.png" alt="ATM效果图2" class="rounded border border-gray-200">
                                    <img src="https://cdn.nlark.com/yuque/0/2023/png/21449790/1692614758105-b6e130f4-42f7-4f20-ad9e-fef34d6df2d8.png" alt="ATM效果图3" class="rounded border border-gray-200">
                                </div>
                            </div>
                        </div>
                    </div>
                </section>
            </div>

            <!-- 侧边栏 -->
            <div class="lg:w-1/4">
                <!-- 概念关系图 -->
                <div class="bg-white rounded-lg shadow-md p-6 mb-6 card">
                    <h3 class="text-xl font-bold text-gray-800 mb-4 flex items-center">
                        <i class="fas fa-project-diagram mr-2 text-indigo-500"></i>循环概念关系图
                    </h3>
                    <div class="mermaid">
                        graph TD
                            A[Java循环语句] --> B[for循环]
                            A --> C[while循环]
                            A --> D[do-while循环]
                            B --> E[已知循环次数]
                            C --> F[未知循环次数]
                            D --> G[至少执行一次]
                            A --> H[控制语句]
                            H --> I[break]
                            H --> J[continue]
                    </div>
                </div>

                <!-- 快速导航 -->
                <div class="bg-white rounded-lg shadow-md p-6 mb-6 card">
                    <h3 class="text-xl font-bold text-gray-800 mb-4 flex items-center">
                        <i class="fas fa-list-ol mr-2 text-blue-500"></i>快速导航
                    </h3>
                    <ul class="space-y-3">
                        <li>
                            <a href="#学习目标" class="text-gray-700 hover:text-blue-600 flex items-center">
                                <i class="fas fa-chevron-right mr-2 text-xs text-blue-400"></i>学习目标
                            </a>
                        </li>
                        <li>
                            <a href="#循环的概念" class="text-gray-700 hover:text-blue-600 flex items-center">
                                <i class="fas fa-chevron-right mr-2 text-xs text-blue-400"></i>循环的概念
                            </a>
                        </li>
                        <li>
                            <a href="#For循环" class="text-gray-700 hover:text-blue-600 flex items-center">
                                <i class="fas fa-chevron-right mr-2 text-xs text-blue-400"></i>For循环
                            </a>
                        </li>
                        <li>
                            <a href="#While循环" class="text-gray-700 hover:text-blue-600 flex items-center">
                                <i class="fas fa-chevron-right mr-2 text-xs text-blue-400"></i>While循环
                            </a>
                        </li>
                        <li>
                            <a href="#Do-While循环" class="text-gray-700 hover:text-blue-600 flex items-center">
                                <i class="fas fa-chevron-right mr-2 text-xs text-blue-400"></i>Do-While循环
                            </a>
                        </li>
                        <li>
                            <a href="#break和continue关键字" class="text-gray-700 hover:text-blue-600 flex items-center">
                                <i class="fas fa-chevron-right mr-2 text-xs text-blue-400"></i>break和continue关键字
                            </a>
                        </li>
                        <li>
                            <a href="#作业" class="text-gray-700 hover:text-blue-600 flex items-center">
                                <i class="fas fa-chevron-right mr-2 text-xs text-blue-400"></i>作业
                            </a>
                        </li>
                    </ul>
                </div>

                <!-- 关键点总结 -->
                <div class="bg-white rounded-lg shadow-md p-6 mb-6 card">
                    <h3 class="text-xl font-bold text-gray-800 mb-4 flex items-center">
                        <i class="fas fa-lightbulb mr-2 text-yellow-500"></i>关键点总结
                    </h3>
                    <div class="space-y-3">
                        <div class="bg-blue-50 p-3 rounded-lg">
                            <h4 class="font-semibold text-blue-700 mb-1">For循环</h4>
                            <p class="text-sm text-blue-600">适用于已知循环次数的情况</p>
                        </div>
                        <div class="bg-green-50 p-3 rounded-lg">
                            <h4 class="font-semibold text-green-700 mb-1">While循环</h4>
                            <p class="text-sm text-green-600">适用于未知循环次数的情况</p>
                        </div>
                        <div class="bg-orange-50 p-3 rounded-lg">
                            <h4 class="font-semibold text-orange-700 mb-1">Do-While循环</h4>
                            <p class="text-sm text-orange-600">至少会执行一次循环体</p>
                        </div>
                        <div class="bg-purple-50 p-3 rounded-lg">
                            <h4 class="font-semibold text-purple-700 mb-1">控制语句</h4>
                            <p class="text-sm text-purple-600">break: 中断循环<br>continue: 跳过本次循环</p>
                        </div>
                    </div>
                </div>

                <!-- 相关资源 -->
                <div class="bg-white rounded-lg shadow-md p-6 card">
                    <h3 class="text-xl font-bold text-gray-800 mb-4 flex items-center">
                        <i class="fas fa-book-open mr-2 text-red-500"></i>相关资源
                    </h3>
                    <ul class="space-y-3">
                        <li>
                            <a href="#" class="text-gray-700 hover:text-red-600 flex items-start">
                                <i class="fas fa-file-alt mt-1 mr-2 text-red-400"></i>
                                <span>Java官方文档-循环控制</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="text-gray-700 hover:text-red-600 flex items-start">
                                <i class="fas fa-video mt-1 mr-2 text-red-400"></i>
                                <span>Java循环语句视频教程</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="text-gray-700 hover:text-red-600 flex items-start">
                                <i class="fas fa-code mt-1 mr-2 text-red-400"></i>
                                <span>循环语句实战案例集</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="text-gray-700 hover:text-red-600 flex items-start">
                                <i class="fas fa-chart-bar mt-1 mr-2 text-red-400"></i>
                                <span>循环性能优化指南</span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="footer text-white py-8">
        <div class="container mx-auto px-4 md:px-6">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-4 md:mb-0">
                    <div class="flex items-center space-x-2">
                        <i class="fas fa-code text-blue-400 text-2xl"></i>
                        <span class="font-bold text-xl">技术小馆</span>
                    </div>
                </div>
                <div>
                    <a href="http://www.yuque.com/jtostring" class="text-gray-300 hover:text-white transition duration-300">
                        <i class="fas fa-globe mr-2"></i>www.yuque.com/jtostring
                    </a>
                </div>
            </div>
            <div class="border-t border-gray-700 mt-6 pt-6 text-center text-gray-400 text-sm">
                &copy; 2024 技术小馆. 保留所有权利.
            </div>
        </div>
    </footer>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: false,
                htmlLabels: true,
                curve: 'basis'
            }
        });
        
        // 复制代码功能
        document.querySelectorAll('.code-header button').forEach(button => {
            button.addEventListener('click', () => {
                const codeBlock = button.parentElement.nextElementSibling;
                const code = codeBlock.querySelector('code').textContent;
                navigator.clipboard.writeText(code).then(() => {
                    const originalIcon = button.innerHTML;
                    button.innerHTML = '<i class="fas fa-check"></i>';
                    setTimeout(() => {
                        button.innerHTML = originalIcon;
                    }, 2000);
                });
            });
        });
    </script>
</body>
</html>
```